﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ModuleCenter_SanPhamBanChay.ascx.cs"
    Inherits="TTMarketing.CameraUserControl.SanPhamBanChay.ModuleCenter_SanPhamBanChay" %>
<div class="main-content-title">
    <img src="../Styles/Images/web_camera.png" alt="" width="20" height="20" align="absmiddle" />Sản
    phẩm bán chạy</div>
<asp:DataList ID="DataList1" runat="server" DataSourceID="odsProduct" Width="100%"
    OnPreRender="DataList1_PreRender" OnItemCommand="DataList1_ItemCommand">
    <ItemTemplate>
        <div class="main-content-palce">
            <div class="main-content">
                <table class="style1">
                    <tr>
                        <td align="center" rowspan="4" width="249px">
                            <div class="img-product">
                                <a href='<%# Eval("ID", "san-pham.aspx?id={0}") %>'>
                                    <asp:Image ID="Image1" runat="server" Height="189px" Width="249px" ImageUrl='<%# Eval("Image", "~/Image/Upload/{0}") %>'
                                        ToolTip='<%# Eval("Name") %>' />
                                </a>
                            </div>
                        </td>
                        <td>
                            <asp:HyperLink ID="HyperLink2" runat="server" Text='<%# Eval("Name") %>'></asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text="Giá:"></asp:Label>
                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("Price", "{0:N0}VNĐ") %>'></asp:Label>
                            
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DataList ID="DataList1" runat="server" DataSource='<%# Eval("tblProduct_Attributes") %>'
                                Width="100%">
                                <ItemTemplate>
                                    <asp:Label ID="Label5" runat="server" Text='<%# Eval("tblCate_Attribute.tblAttribute.Name") %>'></asp:Label>
                                    &nbsp;:
                                    <asp:Label ID="Label6" runat="server" Text='<%# Eval("Value") %>'></asp:Label>
                                    <br />
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:HiddenField ID="hfID" runat="server" Value='<%# Eval("ID") %>' />
                            <asp:ImageButton ID="btnMuaNgay" runat="server" Height="22px" Width="100px" ImageUrl="~/Styles/Images/ngang-luong-thanh-toan.gif" />
                            &nbsp;<asp:ImageButton ID="btnDatMua" runat="server" ImageUrl="~/Styles/Images/buy.png"
                                CommandArgument='<%# Eval("ID") %>' CommandName="Mua" />
                            <br />
                            <asp:HyperLink ID="btnSosanh" runat="server" NavigateUrl="~/#">Thêm vào so sánh</asp:HyperLink>
                            <img src="../Styles/Images/edit_redo.png" border="0" />
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("ID", "~/san-pham.aspx?id={0}") %>'>Xem chi tiết</asp:HyperLink>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="main-content-botton">
            </div>
        </div>
    </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource ID="odsProduct" runat="server" SelectMethod="Product_getTopHOT"
    TypeName="TTController.clsCTProcess">
    <SelectParameters>
        <asp:Parameter DefaultValue="6" Name="statusID" Type="Int32" />
        <asp:Parameter DefaultValue="5" Name="top" Type="Int32" />
        <asp:Parameter DefaultValue="true" Name="status" Type="Boolean" />
        <asp:Parameter DefaultValue="true" Name="visible" Type="Boolean" />
    </SelectParameters>
</asp:ObjectDataSource>
